package com.itkjb.leisurely.resource.sys.model.dto;

import com.itkjb.leisurely.core.base.BaseModel;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * Copyright (C), 2021-2099
 *
 * @Author: lix
 * @Date: 2021/3/30 3:53 下午
 * @Description: 修改密码的dto
 * @Version: V1.0.0
 */
@Data
public class ChangePasswdDTO extends BaseModel implements Serializable {
    /**
     * 老的密码
     */
    @NotNull(message = "原始密码不能为空")
    @Length(min = 6,message = "原始密码最小长度")
    private String oldPwd;
    /**
     * 新密码
     */
    @NotNull(message = "新密码不能为空")
    @Length(min = 6,message = "原始密码最小长度")
    private String newPwd;
}
